<?php
add_action( 'init', 'Manager_Actor' );
function Manager_Actor() {
	register_taxonomy(
		'coursetags',
		'Actor',
		array(
	 'name' => _x('Actor','Lo?i actor'),
        'singular_name' => _x('Lo?i Actor','Lo?i actor'),
        'search_items' => __('search actor'),
        'all_items' => __('All actor'),
        'edit_item' => __('Edit actor'),
        'add_new_item' => __('add new'),
        'menu_name' => __('Loai actor'))
        );
        $args = array(
        'labels' => $taxonomylabels,
        'hierarchical' => true,
		);
	
	register_post_type( 'Actor',
		array(
			'labels' => array(
				'name' => __( 'All Actor' ),
				'singular_name' => __( 'Actor' ),
				'add_new' => _x('Add New', 'Actor'),
				'add_new_item' => __('Add New Actor'),
				'edit_item' => __('Edit Actor'),
				'new_item' => __('New Actor'),
				'view_item' => __('View Actor'),
				'search_items' => __('Search Actor')
			),
        'description' => 'Quan ly dien vien',
		'public' => true,
		'menu_position' => 3,
		'has_archive' => true,
		'hierarchical' => false,
		'taxonomies' => array('coursetags'),
		'supports' => array( 'title', 'editor', 'author',  'comments', 'custom-fields', 'cats')
		)
	);
}
